﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HexagonWeb.BIL;
using HexagonWeb.Models;

namespace HexagonWeb.IBIL
{
    public interface InterfaceAirlineService : InterfaceBaseService<Airline>
    {
        //航班是否存在
        bool Exist(string num);

        //查找航班
        Airline Find(int id);

        //分页查找
        IQueryable<Airline> FindPageList(int pageIndex, int pageSize, out int totalRecord, int order);

        //今天查找
        IQueryable<Airline> FindPageList(int pageIndex, int pageSize, out int totalRecord, DateTime Today,int order);

        //排序
        IQueryable<Airline> Order(IQueryable<Airline> entitys, int roderCode);

        //航班列表
        IQueryable<Airline> FindPageList(out int totalRecord, int pageIndex, int pageSize,
            string EscapeDistrict, string ArriveDistrict, Nullable<DateTime >fromDate, Nullable<DateTime> toDate, int orderCode);
    }
}